// pages/mine/mycard/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
	  activeindex:0,
 tab:["未使用","已使用","已失效"],
 card:[
	 { img: "/images/card1.png", name:"2018新款布艺 车载按摩坐垫 ",value:"99元",usetime:"2018.12.31",lastnum:15},
	 { img: "/images/card1.png", name: "2018新款布艺 车载按摩坐垫 ", value: "99元", usetime: "2018.12.31", lastnum: 15 },
	 { img: "/images/card1.png", name: "2018新款布艺 车载按摩坐垫 ", value: "99元", usetime: "2018.12.31", lastnum: 15 },
	 { img: "/images/card1.png", name: "2018新款布艺 车载按摩坐垫 ", value: "99元", usetime: "2018.12.31", lastnum: 15 }
 ]
  },

  /**
   * 生命周期函数--监听页面加载
   */
  onLoad: function (options) {

  },

  /**
   * 生命周期函数--监听页面初次渲染完成
   */
  onReady: function () {

  },

  /**
   * 生命周期函数--监听页面显示
   */
  onShow: function () {

  },

  /**
   * 生命周期函数--监听页面隐藏
   */
  onHide: function () {

  },

  /**
   * 生命周期函数--监听页面卸载
   */
  onUnload: function () {

  },
	tabtap:function(e){
		this.setData({
			activeindex:e.currentTarget.dataset.index
		})
	}
})